package com.zeng.entity;


import java.io.Serializable;

/**
 * 表格页面通用结果集
 */

public class ResultPage implements Serializable {

    private int pageTotal;
    private String msg;
    private Object data;

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static ResultPage success(int pageTotal, String msg, Object data) {
        ResultPage result = new ResultPage();
        result.setPageTotal(pageTotal);
        result.setMsg(msg);
        result.setData(data);
        return result;
    }
}
